﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;

namespace DAO
{
    public class DataProvider
    {
        public static SqlConnection ConnectDB()
        {
            string connectionString;
            //connectionString = "Data Source=.\\SQLEXPRESS;Initial Catalog=QuanLyNhaHang" + ";Integrated Security=True";
            connectionString = @"Data Source=localhost;Initial Catalog=QuanLyNhaHang;user=sa;password=123456";
            SqlConnection conn;
            conn = new SqlConnection(connectionString);
            conn.Open();
            return conn;
        }
    }
}
